package ooday02;
//测试类
public class Test {
    public static void main(String[] args) {
        Dog xb = new Dog("泰迪", 3, "灰");
        xb.drink();
        xb.eat();
        xb.lookHome();

        Chick dhj = new Chick("花花",1,"粉红");
        dhj.drink();
        dhj.eat();
        dhj.layEggs();

        Fish jy = new Fish("金金",99,"金");
        jy.drink();
        jy.eat();

    }
}

